//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by FernFlower decompiler)
//

package org.yaukie.base.core.entity;

import java.util.ArrayList;
import java.util.List;
import org.yaukie.base.core.BaseEntity;

public class XDept extends BaseEntity {
    private static final long serialVersionUID = 1L;
    private Long deptId;
    private Long parentId;
    private String ancestors;
    private String deptName;
    private String orderNum;
    private String leader;
    private String phone;
    private String email;
    private String status;
    private String delFlag;
    private String parentName;
    private List<XDept> children = new ArrayList();

    public XDept() {
    }

    public Long getDeptId() {
        return this.deptId;
    }

    public Long getParentId() {
        return this.parentId;
    }

    public String getAncestors() {
        return this.ancestors;
    }

    public String getDeptName() {
        return this.deptName;
    }

    public String getOrderNum() {
        return this.orderNum;
    }

    public String getLeader() {
        return this.leader;
    }

    public String getPhone() {
        return this.phone;
    }

    public String getEmail() {
        return this.email;
    }

    public String getStatus() {
        return this.status;
    }

    public String getDelFlag() {
        return this.delFlag;
    }

    public String getParentName() {
        return this.parentName;
    }

    public List<XDept> getChildren() {
        return this.children;
    }

    public void setDeptId(final Long deptId) {
        this.deptId = deptId;
    }

    public void setParentId(final Long parentId) {
        this.parentId = parentId;
    }

    public void setAncestors(final String ancestors) {
        this.ancestors = ancestors;
    }

    public void setDeptName(final String deptName) {
        this.deptName = deptName;
    }

    public void setOrderNum(final String orderNum) {
        this.orderNum = orderNum;
    }

    public void setLeader(final String leader) {
        this.leader = leader;
    }

    public void setPhone(final String phone) {
        this.phone = phone;
    }

    public void setEmail(final String email) {
        this.email = email;
    }

    public void setStatus(final String status) {
        this.status = status;
    }

    public void setDelFlag(final String delFlag) {
        this.delFlag = delFlag;
    }

    public void setParentName(final String parentName) {
        this.parentName = parentName;
    }

    public void setChildren(final List<XDept> children) {
        this.children = children;
    }

    public boolean equals(final Object o) {
        if (o == this) {
            return true;
        } else if (!(o instanceof XDept)) {
            return false;
        } else {
            XDept other = (XDept)o;
            if (!other.canEqual(this)) {
                return false;
            } else {
                label155: {
                    Object this$deptId = this.getDeptId();
                    Object other$deptId = other.getDeptId();
                    if (this$deptId == null) {
                        if (other$deptId == null) {
                            break label155;
                        }
                    } else if (this$deptId.equals(other$deptId)) {
                        break label155;
                    }

                    return false;
                }

                Object this$parentId = this.getParentId();
                Object other$parentId = other.getParentId();
                if (this$parentId == null) {
                    if (other$parentId != null) {
                        return false;
                    }
                } else if (!this$parentId.equals(other$parentId)) {
                    return false;
                }

                Object this$ancestors = this.getAncestors();
                Object other$ancestors = other.getAncestors();
                if (this$ancestors == null) {
                    if (other$ancestors != null) {
                        return false;
                    }
                } else if (!this$ancestors.equals(other$ancestors)) {
                    return false;
                }

                label134: {
                    Object this$deptName = this.getDeptName();
                    Object other$deptName = other.getDeptName();
                    if (this$deptName == null) {
                        if (other$deptName == null) {
                            break label134;
                        }
                    } else if (this$deptName.equals(other$deptName)) {
                        break label134;
                    }

                    return false;
                }

                label127: {
                    Object this$orderNum = this.getOrderNum();
                    Object other$orderNum = other.getOrderNum();
                    if (this$orderNum == null) {
                        if (other$orderNum == null) {
                            break label127;
                        }
                    } else if (this$orderNum.equals(other$orderNum)) {
                        break label127;
                    }

                    return false;
                }

                label120: {
                    Object this$leader = this.getLeader();
                    Object other$leader = other.getLeader();
                    if (this$leader == null) {
                        if (other$leader == null) {
                            break label120;
                        }
                    } else if (this$leader.equals(other$leader)) {
                        break label120;
                    }

                    return false;
                }

                Object this$phone = this.getPhone();
                Object other$phone = other.getPhone();
                if (this$phone == null) {
                    if (other$phone != null) {
                        return false;
                    }
                } else if (!this$phone.equals(other$phone)) {
                    return false;
                }

                label106: {
                    Object this$email = this.getEmail();
                    Object other$email = other.getEmail();
                    if (this$email == null) {
                        if (other$email == null) {
                            break label106;
                        }
                    } else if (this$email.equals(other$email)) {
                        break label106;
                    }

                    return false;
                }

                Object this$status = this.getStatus();
                Object other$status = other.getStatus();
                if (this$status == null) {
                    if (other$status != null) {
                        return false;
                    }
                } else if (!this$status.equals(other$status)) {
                    return false;
                }

                label92: {
                    Object this$delFlag = this.getDelFlag();
                    Object other$delFlag = other.getDelFlag();
                    if (this$delFlag == null) {
                        if (other$delFlag == null) {
                            break label92;
                        }
                    } else if (this$delFlag.equals(other$delFlag)) {
                        break label92;
                    }

                    return false;
                }

                Object this$parentName = this.getParentName();
                Object other$parentName = other.getParentName();
                if (this$parentName == null) {
                    if (other$parentName != null) {
                        return false;
                    }
                } else if (!this$parentName.equals(other$parentName)) {
                    return false;
                }

                Object this$children = this.getChildren();
                Object other$children = other.getChildren();
                if (this$children == null) {
                    if (other$children != null) {
                        return false;
                    }
                } else if (!this$children.equals(other$children)) {
                    return false;
                }

                return true;
            }
        }
    }

    protected boolean canEqual(final Object other) {
        return other instanceof XDept;
    }

    public int hashCode() {
        int result = 1;
        Object $deptId = this.getDeptId();
        result = result * 59 + ($deptId == null ? 43 : $deptId.hashCode());
        Object $parentId = this.getParentId();
        result = result * 59 + ($parentId == null ? 43 : $parentId.hashCode());
        Object $ancestors = this.getAncestors();
        result = result * 59 + ($ancestors == null ? 43 : $ancestors.hashCode());
        Object $deptName = this.getDeptName();
        result = result * 59 + ($deptName == null ? 43 : $deptName.hashCode());
        Object $orderNum = this.getOrderNum();
        result = result * 59 + ($orderNum == null ? 43 : $orderNum.hashCode());
        Object $leader = this.getLeader();
        result = result * 59 + ($leader == null ? 43 : $leader.hashCode());
        Object $phone = this.getPhone();
        result = result * 59 + ($phone == null ? 43 : $phone.hashCode());
        Object $email = this.getEmail();
        result = result * 59 + ($email == null ? 43 : $email.hashCode());
        Object $status = this.getStatus();
        result = result * 59 + ($status == null ? 43 : $status.hashCode());
        Object $delFlag = this.getDelFlag();
        result = result * 59 + ($delFlag == null ? 43 : $delFlag.hashCode());
        Object $parentName = this.getParentName();
        result = result * 59 + ($parentName == null ? 43 : $parentName.hashCode());
        Object $children = this.getChildren();
        result = result * 59 + ($children == null ? 43 : $children.hashCode());
        return result;
    }

    public String toString() {
        return "XDept(deptId=" + this.getDeptId() + ", parentId=" + this.getParentId() + ", ancestors=" + this.getAncestors() + ", deptName=" + this.getDeptName() + ", orderNum=" + this.getOrderNum() + ", leader=" + this.getLeader() + ", phone=" + this.getPhone() + ", email=" + this.getEmail() + ", status=" + this.getStatus() + ", delFlag=" + this.getDelFlag() + ", parentName=" + this.getParentName() + ", children=" + this.getChildren() + ")";
    }
}
